<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 *
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Request;
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;


$return = [
    'app_name' => env('APP_NAME', 'Juling'),
    'app_env' => env('APP_ENV', 'dev'),
    "appCodeName" => env("APP_CODE_NAME", "hyperf"),
    "appScheme" => env("APP_SCHEME", "http"),
    "appHost" => env("APP_HOST", ""),
    "staticHost" => env("STATIC_HOST", "https://s.s.com"),
    'scan_cacheable' => env('SCAN_CACHEABLE', false),
    StdoutLoggerInterface::class => [
        'log_level' => [
            LogLevel::ALERT,
            LogLevel::CRITICAL,
            LogLevel::DEBUG,
            LogLevel::EMERGENCY,
            LogLevel::ERROR,
            LogLevel::INFO,
            LogLevel::NOTICE,
            LogLevel::WARNING,
        ],
    ],
];

$return["appBaseURL"] = $return["appScheme"] . '://' . $return["appHost"];

return $return;
